package test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Student {
    @Autowired
    @Qualifier("dinner")
    private Food food;


    @Override
    public String toString() {
        return "食物="+food;
    }
}
